package com.raos.example.model;

import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;

import java.util.Date;

/**
 * 基础数据类
 *
 * @author Jiaju Zhuang
 **/
@Getter
@Setter
@EqualsAndHashCode
public class DownloadData {

    @ColumnWidth(20) // 指定列宽
    @ExcelProperty(value = "字符串标题", index = 1)
    private String str;
    @ColumnWidth(16)
    @ExcelProperty(value = "日期标题", index = 2)
    private Date dateTime;
    @ColumnWidth(12)
    @ExcelProperty(value = "数字标题", index = 3)
    private Double doubleData;

}
